home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 22 / 4 / DISK2247.ZIP / MSCBATS.ZIP / RDINST.BAT < prev   
DOS Batch File  |  1990-06-21  |  3KB  |  103 lines

  1. @echo off
  2. rem rolodeck installation batch file--------------------------------------------
  3. rem rdinst.bat    1.4 - 90/06/21
  4.  
  5. rem ----------------------------------------------------------------------------
  6. rem NAME
  7. rem      install.bat - rolodeck installation batch file for MS-DOS
  8. rem
  9. rem SYNOPSIS
  10. rem      install model [x]
  11. rem
  12. rem DESCRIPTION
  13. rem     install.bat performs the installation of the cbase library for
  14. rem     MS-DOS.  model specifies the memory model as one of the following.
  15. rem
  16. rem          S        small model
  17. rem          M        medium model
  18. rem          C        compact model
  19. rem          L        large model
  20. rem          H        huge model
  21. rem
  22. rem     If specified, the second parameter causes the reference manual to
  23. rem     be extracted from the source code.  The reference manual is placed
  24. rem     in the file cbase.man.
  25. rem
  26. rem SEE ALSO
  27. rem      makefile
  28. rem
  29. rem NOTES
  30. rem      This batch file is written for use with Microsoft C.  To convert
  31. rem      it for use with another compiler, make the following
  32. rem      modifications:
  33. rem           1. Replace \c\include with the include directory used by
  34. rem              the new compiler.
  35. rem           2. Replace cl with the command to invoke the compiler being
  36. rem              used, replacing the switches also, if necessary.  Below
  37. rem              are listed the Microsoft C switches used and their
  38. rem              meanings.
  39. rem                   -Oalt     optimization
  40. rem                   -Gs       speed optimization
  41. rem                   -c        compile but don't link
  42. rem                   -Za       ANSI keywords only
  43. rem                   -A        memory model
  44. rem
  45. rem ----------------------------------------------------------------------------
  46.  
  47. rem verify arguments------------------------------------------------------------
  48. if "%1" == "S" goto arg1
  49. if "%1" == "M" goto arg1
  50. if "%1" == "C" goto arg1
  51. if "%1" == "L" goto arg1
  52. if "%1" == "H" goto arg1
  53. echo Usage:  install model [x]
  54. echo Valid values for model are S (small), M (medium), C (compact),
  55. echo   L (large), and H (huge).  Model must be upper case.
  56. echo If x is specified, the reference manual will be extracted.
  57. goto end
  58. :arg1
  59.  
  60. if "%2" == "" goto arg2
  61. if "%2" == "x" goto arg2
  62. echo Usage:  install model [x]
  63. echo Invalid second argument.  Valid value is lowercase x.
  64. :arg2
  65.  
  66. if "%3" == "" goto arg3
  67. echo Usage:  install model [x]
  68. echo Too many arguments specified.
  69. :arg3
  70.  
  71. rem check if required libraries installed---------------------------------------
  72. if exist \c\include\cbase.h goto cbase
  73. echo The cbase library must be installed first.
  74. goto end
  75. :cbase
  76.  
  77. rem extract the reference manual------------------------------------------------
  78. if not "%2" == "x" goto skipman
  79. echo Extracting reference manual into cbase.man.
  80. if not exist rolodeck.man goto man
  81. echo rolodeck.man exists.  ^C to exit, any other key to continue.
  82. pause
  83. :man
  84. if not exist tmp goto tmp
  85. echo tmp exists.  ^C to exit, any other key to continue.
  86. pause
  87. :tmp
  88. echo on
  89. copy rolodeck.c/a+cvtss.c+fml.c tmp
  90. type tmp | manx -c > rolodeck.man
  91. del tmp
  92. @echo off
  93. :skipman
  94.  
  95. rem make rolodeck program-------------------------------------------------------
  96. echo on
  97. cl -c -Oalt -Gs -A%1 cvtss.c
  98. cl -Oalt -Gs -Za -A%1 rolodeck.c fml.c cvtss.obj cbase%1.lib btree%1.lib lseq%1.lib blkio%1.lib
  99. @echo off
  100.  
  101. rem end of rolodeck installation batch file-------------------------------------
  102. :end
  103.